/*
 * @Description: 知识考核题库
 * @Author: Boide
 * @Date: 2022-02-18 17:50:26
 * @LastEditors: guiyi@hongyi.tech
 * @LastEditTime: 2022-02-19 14:59:47
 */

import http from '@/utils/request'

// 查询所有题库
export const choiceQuestionList = (params) => http.postJson('/question/choiceQuestionList', params)

// 查询详情
export const choiceQuestionDetail = (choiceQuestionId) => http.get(`/question/choiceQuestionDetail/${choiceQuestionId}`)

// 知识考核考题分类列表
export const getQuestionType = () => http.get(`/question/getQuestionType`)

// 新增
export const choiceQuestionAdd = (data) => http.postJson('/question/choiceQuestionAdd', data)

// 修改
export const choiceQuestionEdit = (data) => http.putJson('/question/choiceQuestionEdit', data)

// 删除
export const choiceQuestionDeleteBatch = (data) => http.postJson(`/question/choiceQuestionDeleteBatch`, data)

// 单个发布
export const publish = (data) => http.putJson('/question/publish', data)

// 批量发布
export const publishBatch = (data) => http.putJson('/question/publish/batch', data)